<template>
  <div></div>
</template>

<script setup>
const a = ref(1);
const b = ref(2);
const obj = reactive({
  a: 1,
  b: 2,
});
const c = computed(() => {
  return a.value + b.value;
});
console.log(c, c.value);
/* 
ComputedRefImpl {dep: undefined, __v_isRef: true, __v_isReadonly: true, effect: ReactiveEffect, _setter: ƒ, …}
 3
*/
const c1 = computed(() => {
  return obj.a + obj.b;
});
console.log(c1, c1.value);// 同上。
</script>

<style lang="scss" scoped></style>
